#ifndef SEQLIST_H
#define SEQLIST_H

#include "header.h"

typedef unsigned int  SeqListNode;
typedef struct SeqListType{
    int capacity;
    int length;
    SeqListNode * node;
}SeqListType;

class SeqList
{
public:
    SeqListType * seq;
    SeqList();
    void create(int m_capacity);
    void destory(void);
    void clear(void);
    bool isEmpty(void);
    void print(void);
    SeqListNode getNode(int pos) const;
    void insert(SeqListNode node, int pos);
    int locate(SeqListNode node);
    int getLength() const; //如果成员函数不会改变类成员变量，最好加上这个const，这是个好习惯
    int getCapacity() const;
};

#endif // SEQLIST_H
